import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart';
import 'package:flutter_app/views.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  final wordPair = new WordPair.random();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      // home: UpdateWidget()
      // home: WidgetAddOrDel()
      // home: MyFadeTest()
      // home: DemoApp()
      // home: CustomButton('20220316', Icons.map),
      // home: RelatLayoutPage(),
      // home: LinearLayoutPage(),
      home: UpAdapter(),
      routes:<String,WidgetBuilder>{
        '/a':(BuildContext context)=>MyPage(title:'page a'),
        '/b':(BuildContext context)=>MyPage(title:'page b'),
      }
    );
  }
}

class MyPage extends StatelessWidget{
  String title;
  MyPage({this.title});
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Center(
      child: Text(this.title),
    );
  }
}